package com.fy.search.api;

import com.fy.search.dto.CommodityDto;
import com.fy.search.dto.QueryCommodityDto;
import com.fy.search.dto.QueryScenicDto;
import com.fy.search.dto.ScenicDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.PatchMapping;

import java.util.List;

@FeignClient(value = "domain-search", path = "search")
public interface SearchService {
    //查询商品
    @PatchMapping(value = "querycommoditylist")
    Page<CommodityDto> queryCommodityList(QueryCommodityDto queryCommodityDto);

    //景区查询
    @PatchMapping(value = "querysceniclist")
    List<ScenicDto> queryScenicList(QueryScenicDto queryScenicDto);
}
